package com.wing.sell.model.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.sell.model.entity.AgentDueEnclosure;
import com.wing.sell.model.entity.OrderProEnclosure;
import com.wing.sell.model.entity.OrderProReview;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.sell.model.entity.OrderPro;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 销售订单产品表Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class OrderProForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 订单ID
     */
    private Long orderId;


    /**
     *客户id
     */
    private Long customerId;

    /**
     * 产品类型ID
     */
    private Long proTypeId;

    /**
     * 客户sku料号
     */
    private String customerSkuItem;

    /**
     * 客户sku名称
     */
    private String customerSkuName;

    /**
     * 客户规格码
     */
    private String customerSpecCode;

    /**
     * 产品单位ID
     */
    private Long proUnitId;

    /*说明*/
    private String proRemark;
    /**
     * 是否需要包装
     */
    private Boolean whetherPack;

    /**
     * 包装说明
     */
    private String packExplain;

    /**
     * 需求数量
     */
    private Integer quantity;

    /**
     * 状态
     */
    private OrderPro.Status status;

    /**
     * 产品ID,无论新建还是关联内部,prodetail表ID
     */
    private Long relationProId;

    /**
     * 建议最低单价
     */
    private String suggestLowestPrice;

    /**
     * 建议单价
     */
    private String suggestPrice;

    /**
     * 优惠单价
     */
    private String discountPrice;
    /**
     * 报价说明
     */
    private String offerRemark;

    /**
     * 终审结果
     */
    private OrderPro.FinalResult finalResult;

    /** 产品包含的评审环节
     */
    @TableField(exist = false)
    private List<OrderProReview> orderProReviewList = new ArrayList<OrderProReview>();
    /**
     * 附件列表
     */
    @TableField(exist = false)
    private List<OrderProEnclosure>  orderProEnclosureList= new ArrayList<OrderProEnclosure>();
    public interface Add{}

    public interface Update{}
    /**
     * 报价状态
     */
    private OrderPro.OfferStatus offerStatus;
    /**
     * 备注
     */
    private String remark;
}
